import Vue from 'vue'
import Router from 'vue-router'
import home_page from "../components/home_page";
import school_movie from "../components/school_movie";
import view_order from "../components/view_order";
import movie_detail from "../components/movie_detail";
import login_register_page from "../components/login_register_page";
import buy_movie_ticket_page from "../components/buy_movie_ticket_page";
import video_hall_page from "../components/video_hall_page";
import alipay_page from "../components/alipay_page";
import movie_type_page from "../components/movie_type_page";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home_page',
      component: home_page
    },
    {
      path: '/school_movie',
      name: 'school_movie',
      component: school_movie
    },
    {
      path: '/view_order',
      name: 'view_order',
      component: view_order
    },
    {
      path: '/movie_detail',
      name: 'movie_detail',
      component: movie_detail
    },
    {
      path: '/login_register_page',
      name: 'login_register_page',
      component: login_register_page
    },
    {
      path: '/buy_movie_ticket_page',
      name: 'buy_movie_ticket_page',
      component: buy_movie_ticket_page
    },
    {
      path: '/video_hall_page',
      name: 'video_hall_page',
      component: video_hall_page
    },
    {
      path: '/alipay_page',
      name: 'alipay_page',
      component: alipay_page
    },
    {
      path: '/movie_type_page',
      name: 'movie_type_page',
      component: movie_type_page
    }
  ]
})
